<?php 
class Application_Form_{$form->form_name} extends {$form->form_extends}{
    public function __construct($options = array()){
        parent::__construct($options);
        
        {foreach $elements as $element}
        //set element {$element->element_name}
        {$template_element = $element->element_type_template}
        {include file="$template_path/forms/elements/$template_element.tpl"}
        {/foreach}
    }
}